package com.qdxwx.data.mapper.advert;

import com.qdxwx.common.page.PageRequest;
import com.qdxwx.models.advert.Advert;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;

/**
 *广告图dao层接口
 * Qdx NetSchool Platform
 * @author qdxwx
 * @updateTime 2022/5/25
 * @description
 */
@Repository
public interface AdvertMapper {

	int insertImage(Advert image);

	List<Advert> selectList(@Param("e") Advert advert, @Param("page") PageRequest page);

	long selectCount(@Param("e") Advert advert);

	Advert selectById(int imageId);

	int deleteById(int id);

	int updateImage(Advert image);

	List<Advert> queryImagesByType();

}

